<?php
    //Establishment of the connection. Kx
    $data_base['server'] = "localhost";
    $data_base['user'] = "root";
    $data_base['password'] = "kndidox01";
    $data_base['db_name'] = "liceo";
    //conect_db();
    function conect_db() {
        if(!($link=mysql_connect("localhost","root","kndidox01"))) {
            echo "Error conectando al Servidor.";
            exit();
        }
        if(!mysql_select_db("liceo",$link)) {//If error... then we display a message error!
            echo "Error seleccionando la base de datos.";
            exit();
        }
        return $link;
    }

?>
